package jp.sourceforge.akjrcp.ffmpeg;

import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.UnsupportedAudioFileException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class PCMPipeReader {
	public static Log log = LogFactory.getLog(PCMPipeReader.class);

	private InputStream inputStream;

	private boolean started=false;
	private boolean done=false;
	public PCMPipeReader(InputStream input){
		this.inputStream=input;
	}
	public InputStream getInputStream() throws UnsupportedAudioFileException, IOException{
		return inputStream;
	}
	
	public void close() throws IOException{
		if(inputStream!=null){
			inputStream.close();
		}
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}
}
